class ScanController < ApplicationController
  
  def create
    
    @scan = Scan.create(params[:scan])
    respond_to do |format|
      if @scan.save
        format.html {redirect_to scan_path}
        format.js
      else
        flash[:notice] = "Failed to create new scan"
        format.html {redirect_to scans_path}
      end
    end
  end
end
